package com.kymatrix.kycarbon.xsmd.kbpm.server.model.enums;


import com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum;

import static com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum.SysConfigGroupName.WF_PROCESS_EVENT_TYPE_ENUM;

/**
 * 流程定义状态
 */
public enum ProcessEventTypeEnum implements BaseBusinessEnum {
    PROCESS_INSTANCE_START("1","流程实例开始事件"),
    PROCESS_INSTANCE_END("2", "流程实例结束事件"),
    PROCESS_TASK_START("3", "流程任务开始事件"),
    PROCESS_TASK_END("4", "流程任务结束事件"),
    ;
    private final String code;

    private final String name;


    ProcessEventTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getSysConfigGroupName() {
        return WF_PROCESS_EVENT_TYPE_ENUM;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
